Ext.namespace('VAS');
VAS.BasicWindow = function($config) {
	var _this = this;
	var thisConfig = {	
		manager:wgroup,
		resizable : true,
		maximizable : false,
		minimizable : false,
		constrainHeader: true,
		plain:true,
		minWidth : 300,
		minHeight : 100,
		afterRender : function() {
			_this.constructor.prototype.afterRender.apply(this, arguments);
			//_this.tools.close.setStyle({display : "none"});
			_this.resizer.enabled = false;
			//_this.dd.onDrag = function(e){};
			_this.show();
		}
	};
	
	var _config = $config || {};
	Ext.apply(_this, Ext.apply(thisConfig, _config));
	VAS.BasicWindow.superclass.constructor.call(_this);
};
Ext.extend(VAS.BasicWindow, Ext.Window, {
	
	closable        : false ,
	
	draggable       : true
	
});
Ext.reg('basic-win', VAS.BasicWindow);




Ext.namespace('VAS');
VAS.NewWindow = function($config) {
	var _this = this;
	var thisConfig = {
		autoScroll : true,
		closable : true,
		resizable : true,
		maximizable : false,
		minimizable : false,
		constrainHeader: false,
		plain:true,
		frame:true,
		minWidth : 300,
		minHeight : 100,
		title:'Explorer',
		afterRender : function() {
			_this.constructor.prototype.afterRender.apply(this, arguments);
			_this.tools.close.setStyle({display : "none"});
			_this.resizer.enabled = false;
			_this.dd.onDrag = function(e){};
			_this.show();
		},
		listeners : {
			move : function(obj, x, y) {
				var _width = _this.width;
				if (x < -240) {
					_this.setPosition(0, y);
				}
				if (y < 0) {
					_this.setPosition(x, 0);
				}
			}
		}
	};
	var _config = $config || {};
	Ext.apply(_this, Ext.apply(thisConfig, _config));
	VAS.NewWindow.superclass.constructor.call(_this);
};
Ext.extend(VAS.NewWindow, Ext.Window, {

});
Ext.reg('new-win',VAS.NewWindow);